package com.mbc.hr.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.xml.bind.annotation.XmlRootElement;

@SuppressWarnings("serial")
@Entity
@Table(name="HR_LeaveType")
@NamedQuery(name="LeaveType.findAll",query="SELECT lt FROM LeaveType lt")
@XmlRootElement
public class LeaveType implements Serializable {

	@Id
	private long leaveTypeID;
	private String name;
	private Integer daysPerYear;
	private Integer daysPerMonth;
	private String color;
	@Transient
	private boolean calendarDefault;
	
	public long getLeaveTypeID() {
		return leaveTypeID;
	}
	public void setLeaveTypeID(long leaveTypeID) {
		this.leaveTypeID = leaveTypeID;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getDaysPerYear() {
		return daysPerYear;
	}
	public void setDaysPerYear(Integer daysPerYear) {
		this.daysPerYear = daysPerYear;
	}
	public Integer getDaysPerMonth() {
		return daysPerMonth;
	}
	public void setDaysPerMonth(Integer daysPerMonth) {
		this.daysPerMonth = daysPerMonth;
	}
	public boolean isCalendarDefault() {
		return calendarDefault;
	}
	public void setCalendarDefault(boolean calendarDefault) {
		this.calendarDefault = calendarDefault;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
}
